package com.amigo.online.consumer.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.param.dto.video.VideoDto;

@FeignClient(name = "amigo-online-provider-video")
public interface VideoService {
	
	@RequestMapping(value = "/video/new", method = RequestMethod.POST)
	public ResponseEntity<Response> newUserVideo(VideoDto dto);
		
	@RequestMapping(value = "/video/my/videos/{page}/{size}", method = RequestMethod.GET)
	public ResponseEntity<Response> getMyVideoListByPageAndSize(@PathVariable("page") Integer page,@PathVariable("page") Integer size);
	
	@RequestMapping(value = "/video/user/videos/{uid}/{page}/{size}", method = RequestMethod.GET)
	public ResponseEntity<Response> getUserVideos(@PathVariable("uid") Long uid,@PathVariable("page") Integer page,@PathVariable("size") Integer size);
	
	@RequestMapping(value="/video/homepageVideoCount/{userId}",method=RequestMethod.GET)
	public ResponseEntity<Response> getHomepageVideoCount(@PathVariable("userId") Long userId);

}
